<script src="http://static.ak.connect.facebook.com/connect.php/en_US" type="text/javascript"></script>

<script type="text/javascript">
function callPublish(msg, attachment, action_link) {
    //alert('abcd');
	FB.ensureInit(function () {
		FB.Connect.streamPublish('', attachment, action_link);
	});
}
</script>

<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script>

<script type="text/javascript">
   FB.init("317a88af6a681b5f8b3a19946796c9bd","xd_receiver.htm");
</script>